/*
 * Copyright (C) 2018,米珈科技有限公司 All rights reserved.
 * Project：MyApplication
 * Author：马靖乘
 * Date：19-4-12 下午10:13
 */

package com.upgrade.service

import android.app.Service
import android.content.Intent
import android.os.IBinder

class MyService : Service() {

    private val mBinder: IBinder = object : IMyAidlInterface.Stub() {
        @Throws(Exception::class)
        override fun addNum(num1: Int, num2: Int): Int {
            return num1 + num2
        }
    }

    override fun onBind(intent: Intent): IBinder? {
        return mBinder
    }
}
